package com.xdfsoft.watercounter.service;

import com.xdfsoft.watercounter.dao.FluxMapper;
import com.xdfsoft.watercounter.model.Flux;
import com.xdfsoft.watercounter.model.Instant;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName:FluxServiceImpl
 * @Description:TODO
 * @Author:chanchaw
 * @Date:2019/10/9 9:13
 * @Version:1.0
 **/
@Service
public class FluxServiceImpl implements FluxService {
    @Autowired
    private FluxMapper dao;

    @Override
    public int deleteByPrimaryKey(Integer iid) {
        return dao.deleteByPrimaryKey(iid);
    }

    @Override
    public int insert(Flux record) {
        return dao.insert(record);
    }

    @Override
    public Flux selectByPrimaryKey(Integer iid) {
        return dao.selectByPrimaryKey(iid);
    }

    @Override
    public List<Flux> selectAll() {
        return dao.selectAll();
    }

    @Override
    public int updateByPrimaryKey(Flux record) {
        return dao.updateByPrimaryKey(record);
    }

    @Override
    public List<Instant> getFlow() {
        return dao.getFlow();
    }
}
